package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/2/25
 * @time: 0:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DoctorScheduling {
    /**
     * 排班表id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 排班日期
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    /**
     * 0为全天，1为上午，2为下午
     */
    private Integer stage;
    /**
     * 医师id
     */
    private Long drId;
    /**
     * 剩余号源
     */
    private Integer rest;
    /**
     * 机构编码
     */
    private String entCode;
    /**
     * 医生数据id
     */
    private Long drDataId;
    /**
     * 医生名字
     */
    private String drName;
    /**
     * 医生级别
     */
    private String drRank;
}
